import request from '@/utils/request'
//获取员工列表
export function getEmployeeApi(params){
    return request({url:'/park/sys/user',params})
}
//添加员工
export function addEmployeeApi(data){
    return request({url:'/park/sys/user',method:'post',data})
}
//查询角色
export function getRoleApi(){
    return request({url:'/park/sys/role'})
}
//编辑用户
export function editRoleApi(data){
    return request({url:'/park/sys/user',method:'put',data})
}
export function employeeDetailApi(id){
    return request({url:'/park/sys/user/'+id})
}
//删除员工
export function delEmployeeApi(id){
    return request({url:'/park/sys/user/'+id,method:'delete'})
}